/*
 * QGLWidgetAdapter.h  0.4.0 / Nov 28, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef QGLWIDGETADAPTER_H
#define QGLWIDGETADAPTER_H

#include "Cute4jOpenGL.h"

// QGLWidgetAdapter Class. -----------------------------------------------------

class GLComponentDelegate;

/*!
 * \brief QGLWidget Adapter.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT QGLWidgetAdapter : public QGLWidget
{
public:
  QGLWidgetAdapter(GLComponentDelegate *glComponentDelegate);
protected:
  void initializeGL();
  void resizeGL(int width, int height);
  void paintGL();
private:
  GLComponentDelegate *m_glComponentDelegate;
};

#endif // QGLWIDGETADAPTER_H
